﻿using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Activation;
using WebConversion.Module;

namespace WebConversion.Mvc.Service
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
    public class DataService : IDataService
    {
        public List<Category> GetCategories()
        {
            var categories =
                Repository.List<Category>();

            return categories;
        }
    }
}
